package noodws

import (
	"go.uber.org/zap"
	"nood/noodframe/noodlog"
)

func (ctx *WsContext) DebugLog(msg string, fields ...zap.Field) {
	fields = append(fields, zap.Any("uid", ctx.UID))
	noodlog.DebugCTX(msg, fields...)
}

func (ctx *WsContext) ErrorLog(msg string, fields ...zap.Field) {
	fields = append(fields, zap.Any("uid", ctx.UID))
	noodlog.ErrorCTX(msg, fields...)
}
